<include file="public:top" />
<!--网站设置-->
<body class="body">
<style type="text/css">
    .red {color: #FF5722!important;}
    .green {color: #5FB878!important;}
</style>
<fieldset class="layui-elem-field layui-field-title" style="margin-top:0px;">
    <legend>{$menuid|getmenuname}</legend>
</fieldset>
<form class="layui-form layui-form-pane" action="">
    <input type="hidden" name="g" value="admin" />
    <input type="hidden" name="m" value="recharge" />
    <input type="hidden" name="a" value="index" />
    <input type="hidden" name="menuid" value="{$menuid}" />
    <div class="my-btn-box">
     <span class="fl">
        <div class="layui-form-item">
            <div class="layui-inline">
              <label class="layui-form-label">会员名</label>
              <div class="layui-input-inline">
                <input type="tel" name="uname" placeholder="请输入会员名" lay-verify="required|phone" value="{$search.uname}" class="layui-input">
              </div>
              <label class="layui-form-label">订单号</label>
              <div class="layui-input-inline">
                <input type="text" name="keyword" placeholder="请输入订单号" lay-verify="email" value="{$search.keyword}" class="layui-input">
              </div>
               
              <div class="layui-input-inline" style="width:100px">
                 <select name="have_pay" lay-filter="have_pay" >
                    <option value="">{:L('all')}</option>
                    <option value="0" <if condition="$search.have_pay eq '0'">selected="selected"</if>>未付款</option>
                    <option value="1" <if condition="$search.have_pay eq '1'">selected="selected"</if>>已付款</option>
                  </select>
              </div>
              <div class="layui-input-inline">
                 <button class="layui-btn mgl-20">搜索</button>
                 <a href="{:U('index', array('menuid'=>$menuid))}" class="layui-btn layui-btn-primary mgl-20">显示全部</a>
              </div>
            </div>
        </div>
     </span>
     <span class="fr">
       <a class="layui-btn layui-btn-danger" id="btn-alldel">批量删除</a>
     </span>
    </div> 
</form>
<form class="layui-form layui-form-pane" action="">
    <table class="layui-table">
        <colgroup>
            <col width="60">
            <col width="60">
            <col width="">
            <col width="140">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="140">
            <col width="110">
            <col width="80">
        </colgroup>
        <thead>
        <tr>
            <th><input type="checkbox" id="checkall_t" lay-skin="primary" lay-filter="allChoose" ></th>
            <th>ID</th>
            <th>订单号</th>
            <th>会员名</th>
            <th>充值积分</th>
            <th>所花现金</th>
            <th>支付方式</th>
            <th>是否付款</th>
            <th>充值时间</th>
            <th>积分是否到账</th>
            <th>管理操作</th>
        </tr>
        </thead>
         <tbody id="userList">
            <volist name="list" id="val" >
              <tr>
                <td><input class="doc_checkbox" type="checkbox" value="{$val.id}" lay-skin="primary" lay-filter="itemChoose"></td>
                <td>{$val.id}</td>
                <td>{$val.sn}</td>
                <td>{$val.uname}</td>
                <td>{$val.score}</td>
                <td>{$val.cash}</td>
                <td>{$val.bank_id}</td>
                
                <td><if condition="$val['have_pay'] eq '0'">未付款<else/><span class="green">已付款</span></if></td>
                <td>{$val.add_time|date='Y-m-d H:i',###}</td>
                <td><if condition="$val['status'] eq '0'">未成功<else/><span class="green">已成功</span></if></td>
                <td>
                    <a href="javascript:void(0);" class="J_confirmurl" data-uri="{:u('recharge/delete', array('id'=>$val['id']))}" data-acttype="ajax" data-msg="{:sprintf(L('confirm_delete_one'),$val['sn'])}" id="delete">{:L('delete')}</a>
                </td>
              </tr>
            </volist>
        </tbody>

    </table>
</form>
<div id="test-laypage-demo0">
  <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-29">
  {$page}
  </div>
</div>
<script type="text/javascript" src="__PUBLIC__/admin/layui/layui.js"></script>
<script>
//Demo
layui.use(['layer','jquery','form','upload'], function () {
   // 操作对象
    var layer = layui.layer,$ = layui.jquery,form = layui.form, upload = layui.upload;

    Oper.initList(layui, '充值记录', 'recharge', 'id');

});
</script>
</body>
</html>